<?php
require_once("gameObjects/enemy.php");
require_once("gameObjects/missionDetail.php");

class gameServer
{
	public function getEnemyValues($id)
	{
		$enemy = new enemy($id);
		
		return array(
		"name"=>$enemy->name,
		"radius"=>$enemy->radius,
		"mspd"=>$enemy->mspd,
		"mran"=>$enemy->mran,
		"eran"=>$enemy->eran,
		"aran"=>$enemy->aran,
		"pow"=>$enemy->pow,
		"actrate"=>$enemy->actrate,
		"hp"=>$enemy->hp,
		"def"=>$enemy->def
		);
	}
	
	public function getMissionDetail($id)
	{
		$mission = new missionDetail($id);
		
		return array(
			"id"=>$mission->id,		
			"name"=>$mission->name,		
			"type"=>$mission->type,				
			"loop"=>$mission->loop,				
			"describe"=>$mission->describe,		
	
			"startTime"=>$mission->startTime,	
			"valid"=>$mission->valid,			
				"tipsType"=>$mission->tipsType,			
			"tipsText"=>$mission->tipsText,	
			"tipsPos"=>$mission->tipsPos,
			
			"acquireRequire"=>$mission->acquireRequire,	
			"completeRequire"=>$mission->completeRequire,
			"reward"=>$mission->reward
		);
	}
	
	
	
	
}

?>